package com.zzptc.sgz.shop.dao;

import com.zzptc.sgz.shop.vo.Product;
import com.zzptc.sgz.shop.vo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDaoI {
    //得到所有用户
    List<User> getAlluser()throws SQLException;
    //新增用户
    int insert(User user)throws SQLException;
    //修改用户
    int update(User user)throws SQLException;
    //登陆
    User getUser(String uname,String upass) throws  SQLException;
}
